﻿#parse("partials/header.html") #parse("partials/sidebar.html")
<script>
    jQuery(document).ready(function () {
        jQuery("#mws-validate-admins-role").submit(
            function () {
                if (jQuery("#mws-validate-admins-role").valid() == true) {
                    jQuery.blockUI();
                    var post_data = jQuery(this).serialize();
                    var form_action = jQuery(this).attr("action");
                    var form_method = jQuery(this).attr("method");
                    jQuery.ajax({
                        type: form_method,
                        url: form_action,
                        cache: false,
                        dataType: "json",
                        data: post_data,
                        success: function (data) {
                            jQuery("#notif").html(data['strNotification']);
                            jQuery.unblockUI();
                        },
                        error: function (data) {
                            jQuery.unblockUI();
                        },
                        complete: function () {

                        }
                    });
                }
                return false;
            });
    });
</script>
<style>
    div#datalist_filter
    {
        display: none;
    }
    div#datalist_length
    {
        display: none;
    }
    .mws-table thead
    {
        margin-top: -10px;
    }
</style>
<div id="mws-container" class="clearfix">
    <!-- Inner Container Start -->
    <div class="container">
        <!-- Panels Start -->
        <div class="mws-panel grid_8">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-table-1">Roles</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                        <li><a class="mws-ic-16 ic-arrow-left" href="/admins/role/" title="Accept">Back To Role List</a></li>
                        <li><a class="mws-ic-16 ic-add" href="/admins/role/createrole" title="Accept">Add Role</a></li>
                    </ul>
                </div>
                <div id="notif">
                    $Notification</div>
                <div class="mws-form" action="#">
                    <div class="mws-form-inline">
                        <form method="post" action="/admins/role/saverolestoservice/" id="mws-validate-admins-role"
                        class="crud">
                        <input type="hidden" value="$IsCreate" name="IsCreate" id="IsCreate" />
                        <input type="hidden" value="$sysRole.RoleId" name="Id" id="Id" />
                        <div class="mws-form-row">
                            <label>
                                Role Name</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                        <div class="mws-form-item">
                                            <input class="mws-textinput required" maxlength="50" id="field" name="DescValue"
                                                type="text" type="text" value="$sysRole.DescValue" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="mws-form-row">
                            <label>
                                Default URL</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                        <div class="mws-form-item">
                                            <input class="mws-textinput" maxlength="50" id="Text1" name="DefaultUrl" type="text"
                                            type="text" value="$sysRole.DefaultUrl" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="mws-form-row">
                            <label>
                                Location</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-3-8 alpha">
                                        <div class="mws-form-item">
                                            $ddlLocationAE
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />
                    <div class="mws-button-row">
                        <input name="btnAction" class="mws-button red" type="submit" value="Save" />
                        <input class="mws-button gray" type="reset" value="Reset" />
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- Panels End -->
    </div>
    <!-- Inner Container End -->
</div>
#parse("partials/footer.html") 